<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<title>IupExecute</title>

<link rel="stylesheet" type="text/css" href="../../style.css">
<style type="text/css">
.style1 {
	text-decoration: underline;
}
.auto-style1 {
	font-size: large;
}
</style>
</head>
<body>

<h2>IupExecuteWait<span class="auto-style1"> (since 3.20)</span></h2>
<p>Runs the executable with the given parameters.</p>
<p>It is a synchronous operation, i.e. the function will wait the command to 
terminate before it returns.</p>
<p>In Windows, there is no need to add the &quot;.exe&quot; file extension.</p>
<h3>
Parameters/Return</h3>
<pre>int IupExecuteWait(const char* <strong>filename</strong>, const char* <strong>parameters</strong>); [in C]
iup.ExecuteWait(<strong>filename[, parameters]</strong>: string) -&gt; (<strong>ret</strong>: number) [in Lua]</pre>
<p><strong>filename</strong>: name of the executable. Can contains a path.<br>
<strong>parameters</strong>: optional parameters. Can be NULL.</p>
<p><span class="style1">Returns:</span> 1 if successful, -1 if failed. In Windows 
and GTK can return -2 if file not found.</p>

</body>

</html>
